﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Luna.WPF.ApplicationFramework;
using Caliburn.Core.Metadata;
using Microsoft.Practices.ServiceLocation;
using Caliburn.PresentationFramework.ApplicationModel;

namespace XWord.GUI.Presenters.Fundamental
{
    [Singleton(typeof(CET4TestTabPresenter))]
    public class CET4TestTabPresenter : DockingPresenter
    {
        public void OpenLCArticleDialog()
        {
            var presenter = ServiceLocator.Current.GetInstance<LCArticlePresenter>();

            ServiceLocator.Current.GetInstance<IWindowManager>()
                .Show(presenter, null, ExecuteShutdownModel);
            //presenter.WordItems = this.WordList;
        }

        public void OpenTranslateDialog()
        {
            var presenter = ServiceLocator.Current.GetInstance<TranslatePresenter>();

            ServiceLocator.Current.GetInstance<IWindowManager>()
                .Show(presenter, null, ExecuteShutdownModel);
            //presenter.WordItems = this.WordList;
        }



        public void OpenRCArticleDialog()
        {
            var presenter = ServiceLocator.Current.GetInstance<RCArticlePresenter>();

            ServiceLocator.Current.GetInstance<IWindowManager>()
                .Show(presenter, null, ExecuteShutdownModel);
            //presenter.WordItems = this.WordList;
        }
    }
}
